package com.bite.lesson4;

import java.util.Scanner;

public class Demo_01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int n = scanner.nextInt();
            printf(n);
            System.out.println();
        }
    }

    private static void printf(int n) {
        while (n != 0) {
            System.out.print(n % 10 + " ");
            n /= 10;
        }
    }
}
